package cn.liontalk.service.impl;

import cn.liontalk.dao.ProductInfoRepository;
import cn.liontalk.entity.ProductInfo;
import cn.liontalk.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ZhouZhe
 * @version 1.0
 * @description
 * @date 2019-04-15 22:18
 **/
@Service
public class ProductServiceImpl implements ProductService {


    @Autowired
    ProductInfoRepository  productInfoRepository;

    @Override
    public List<ProductInfo> queryByProductStatus(int type) {
        return productInfoRepository.queryByProductStatus(type);
    }
}
